
package com.kingdee.eas.custom.aoyuan.aytime.basedata.web;

import org.operamasks.faces.annotation.ManagedBean;
import org.operamasks.faces.annotation.ManagedBeanScope;

import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.MetaDataPK;
import com.kingdee.bos.waf.annotation.IBOSBizCtrl;
import com.kingdee.bos.waf.winlet.list.ListBean;
import com.kingdee.eas.framework.ICoreBase;
import com.kingdee.bos.waf.action.AbstractWebAction;
import javax.faces.event.AbortProcessingException;
import org.operamasks.faces.component.action.ActionEvent;
import com.kingdee.bos.waf.winlet.BaseBean;
import org.operamasks.faces.annotation.Accessible;
import org.operamasks.faces.annotation.Action;
import com.kingdee.eas.custom.aoyuan.aytime.basedata.ISchedule;


public abstract class AbstractScheduleListUIBean extends com.kingdee.bos.waf.winlet.list.ListBean {


	@IBOSBizCtrl
	protected ISchedule service;

	@Accessible
	protected ActionNewMonth actionNewMonth = null;

	public AbstractScheduleListUIBean() {
		super();
        // actionNewMonth
        this.actionNewMonth = (ActionNewMonth)com.kingdee.bos.waf.action.WebActionFactory
				.createWebAction("actionNewMonth", ActionNewMonth.class,getServiceContext());
		this.actionNewMonth.setBaseBean(this);
	}
		
	
	@Override
	protected String getEditBeanName() {
    	
    	return "custom.aoyuan.aytime.basedata.ScheduleEditUIBean";
    	
	}

	@Override
	protected String getEditUrl() {
		
    	return "/custom/aoyuan/aytime/basedata/scheduleEditUI.jsf";
    	
	}

	@Override
	protected ICoreBase getBizInterface() {
		return service;
	}
	
	@Override
	public IMetaDataPK getMetaDataPK() {
		return new MetaDataPK("com.kingdee.eas.custom.aoyuan.aytime.basedata.web.ScheduleListUI");
	}

	@Override
	protected IMetaDataPK getQueryPK() {
		return new MetaDataPK("com.kingdee.eas.custom.aoyuan.aytime.basedata.app.ScheduleQuery");
	}
	
	@Override
	protected String getEntryPKName() {
	
		return super.getEntryPKName();
	
	}
	
	protected void actionNewMonth_actionPerformed(ActionEvent event) throws AbortProcessingException {
	}	
	public static class ActionNewMonth extends AbstractWebAction {
		private BaseBean baseBean;

		public BaseBean getBaseBean() {
			return baseBean;
		}
	
		public void setBaseBean(BaseBean baseBean) {
			this.baseBean = baseBean;
		}
		@Override
		public void processAction(ActionEvent event) throws AbortProcessingException {
			try {
				((AbstractScheduleListUIBean)baseBean).actionNewMonth_actionPerformed(event);
			} catch (Exception e) {
				e.printStackTrace();
				throw new AbortProcessingException(e);
			}
		}
	}	
}

